<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::ccm::ColorCorrectionModel Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d6/db6/namespacecv_1_1ccm.html">ccm</a></li><li class="navelem"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html">ColorCorrectionModel</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="../../d0/def/classcv_1_1ccm_1_1ColorCorrectionModel-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::ccm::ColorCorrectionModel Class Reference<div class="ingroups"><a class="el" href="../../dd/d19/group__mcc.html">Macbeth Chart module</a> » <a class="el" href="../../de/df4/group__color__correction.html">Color Correction Model</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>Core class of ccm model.  
 <a href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#details">More...</a></p>
<p><code>#include &lt;opencv2/mcc/ccm.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aac53feabaac74da5edd9ade5e4163cd0"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#aac53feabaac74da5edd9ade5e4163cd0">ColorCorrectionModel</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;src, <a class="el" href="../../de/df4/group__color__correction.html#ga9550427e0c935010355bbbd7d4569836">CONST_COLOR</a> constcolor)</td></tr>
<tr class="memdesc:aac53feabaac74da5edd9ade5e4163cd0"><td class="mdescLeft"> </td><td class="mdescRight">Color Correction Model.  <a href="#aac53feabaac74da5edd9ade5e4163cd0">More...</a><br/></td></tr>
<tr class="separator:aac53feabaac74da5edd9ade5e4163cd0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a802d6b82243c2398633e1b643bb1e115"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a802d6b82243c2398633e1b643bb1e115">ColorCorrectionModel</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;src, <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> colors, <a class="el" href="../../de/df4/group__color__correction.html#ga42184f42d54a04bea24902e4d20d8f46">COLOR_SPACE</a> ref_cs)</td></tr>
<tr class="memdesc:a802d6b82243c2398633e1b643bb1e115"><td class="mdescLeft"> </td><td class="mdescRight">Color Correction Model.  <a href="#a802d6b82243c2398633e1b643bb1e115">More...</a><br/></td></tr>
<tr class="separator:a802d6b82243c2398633e1b643bb1e115"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac5b005cdbb68aaed515d90b8a382912c"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#ac5b005cdbb68aaed515d90b8a382912c">ColorCorrectionModel</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;src, <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> colors, <a class="el" href="../../de/df4/group__color__correction.html#ga42184f42d54a04bea24902e4d20d8f46">COLOR_SPACE</a> ref_cs, <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> colored)</td></tr>
<tr class="memdesc:ac5b005cdbb68aaed515d90b8a382912c"><td class="mdescLeft"> </td><td class="mdescRight">Color Correction Model.  <a href="#ac5b005cdbb68aaed515d90b8a382912c">More...</a><br/></td></tr>
<tr class="separator:ac5b005cdbb68aaed515d90b8a382912c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6325b3a55deb72767a304c626896f396"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a6325b3a55deb72767a304c626896f396">get_dst_rgbl</a> () const</td></tr>
<tr class="separator:a6325b3a55deb72767a304c626896f396"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a871a8d69a2afc8e3d64ab0a628f055a0"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a871a8d69a2afc8e3d64ab0a628f055a0">get_src_rgbl</a> () const</td></tr>
<tr class="separator:a871a8d69a2afc8e3d64ab0a628f055a0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a87833a1238d4c7cc78eccba70a74725e"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a87833a1238d4c7cc78eccba70a74725e">getCCM</a> () const</td></tr>
<tr class="separator:a87833a1238d4c7cc78eccba70a74725e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a86686c2c1a4aaded3dc8d7af0751b5aa"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a86686c2c1a4aaded3dc8d7af0751b5aa">getLoss</a> () const</td></tr>
<tr class="separator:a86686c2c1a4aaded3dc8d7af0751b5aa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a667ac7a20b258f36678fada5d5f8b44e"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a667ac7a20b258f36678fada5d5f8b44e">getMask</a> () const</td></tr>
<tr class="separator:a667ac7a20b258f36678fada5d5f8b44e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac0ae63ddd6fcda3a53b6e27d0709656c"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#ac0ae63ddd6fcda3a53b6e27d0709656c">getWeights</a> () const</td></tr>
<tr class="separator:ac0ae63ddd6fcda3a53b6e27d0709656c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abb0c9acccb93f8220b98998aa512dcee"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#abb0c9acccb93f8220b98998aa512dcee">infer</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;img, bool islinear=false)</td></tr>
<tr class="memdesc:abb0c9acccb93f8220b98998aa512dcee"><td class="mdescLeft"> </td><td class="mdescRight">Infer using fitting ccm.  <a href="#abb0c9acccb93f8220b98998aa512dcee">More...</a><br/></td></tr>
<tr class="separator:abb0c9acccb93f8220b98998aa512dcee"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa3e97174f1621ab727405684e03009e4"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#aa3e97174f1621ab727405684e03009e4">run</a> ()</td></tr>
<tr class="memdesc:aa3e97174f1621ab727405684e03009e4"><td class="mdescLeft"> </td><td class="mdescRight">make color correction  <a href="#aa3e97174f1621ab727405684e03009e4">More...</a><br/></td></tr>
<tr class="separator:aa3e97174f1621ab727405684e03009e4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a027e6fff707ed911159fc0c225152b0a"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a027e6fff707ed911159fc0c225152b0a">setCCM_TYPE</a> (<a class="el" href="../../de/df4/group__color__correction.html#ga6155b39d9300620492f3132e88200d05">CCM_TYPE</a> ccm_type)</td></tr>
<tr class="memdesc:a027e6fff707ed911159fc0c225152b0a"><td class="mdescLeft"> </td><td class="mdescRight">set ccm_type  <a href="#a027e6fff707ed911159fc0c225152b0a">More...</a><br/></td></tr>
<tr class="separator:a027e6fff707ed911159fc0c225152b0a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0d2a25c9277756304cd03d96ef7b2284"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a0d2a25c9277756304cd03d96ef7b2284">setColorSpace</a> (<a class="el" href="../../de/df4/group__color__correction.html#ga42184f42d54a04bea24902e4d20d8f46">COLOR_SPACE</a> cs)</td></tr>
<tr class="memdesc:a0d2a25c9277756304cd03d96ef7b2284"><td class="mdescLeft"> </td><td class="mdescRight">set ColorSpace  <a href="#a0d2a25c9277756304cd03d96ef7b2284">More...</a><br/></td></tr>
<tr class="separator:a0d2a25c9277756304cd03d96ef7b2284"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af836cb0b7050f5529543755a9d8e6df2"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#af836cb0b7050f5529543755a9d8e6df2">setDistance</a> (<a class="el" href="../../de/df4/group__color__correction.html#gae636a2cf3bab4499df34ddbb028d92b1">DISTANCE_TYPE</a> distance)</td></tr>
<tr class="memdesc:af836cb0b7050f5529543755a9d8e6df2"><td class="mdescLeft"> </td><td class="mdescRight">set Distance  <a href="#af836cb0b7050f5529543755a9d8e6df2">More...</a><br/></td></tr>
<tr class="separator:af836cb0b7050f5529543755a9d8e6df2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa066c569fffdc7440eb20b5562a75174"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#aa066c569fffdc7440eb20b5562a75174">setEpsilon</a> (const double &amp;epsilon)</td></tr>
<tr class="memdesc:aa066c569fffdc7440eb20b5562a75174"><td class="mdescLeft"> </td><td class="mdescRight">set Epsilon  <a href="#aa066c569fffdc7440eb20b5562a75174">More...</a><br/></td></tr>
<tr class="separator:aa066c569fffdc7440eb20b5562a75174"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aacccbe8108d2c3d682ea2711f4be5d91"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#aacccbe8108d2c3d682ea2711f4be5d91">setInitialMethod</a> (<a class="el" href="../../de/df4/group__color__correction.html#ga87d1bd1450e91128cc82adb012bb1db6">INITIAL_METHOD_TYPE</a> initial_method_type)</td></tr>
<tr class="memdesc:aacccbe8108d2c3d682ea2711f4be5d91"><td class="mdescLeft"> </td><td class="mdescRight">set InitialMethod  <a href="#aacccbe8108d2c3d682ea2711f4be5d91">More...</a><br/></td></tr>
<tr class="separator:aacccbe8108d2c3d682ea2711f4be5d91"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a41097192582815e3e99360d97fe8dae2"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a41097192582815e3e99360d97fe8dae2">setLinear</a> (<a class="el" href="../../de/df4/group__color__correction.html#gafe5da1d946c69c97d42acddd476cc89b">LINEAR_TYPE</a> linear_type)</td></tr>
<tr class="memdesc:a41097192582815e3e99360d97fe8dae2"><td class="mdescLeft"> </td><td class="mdescRight">set Linear  <a href="#a41097192582815e3e99360d97fe8dae2">More...</a><br/></td></tr>
<tr class="separator:a41097192582815e3e99360d97fe8dae2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abb61f3d57e1a29c07684681de58dfb65"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#abb61f3d57e1a29c07684681de58dfb65">setLinearDegree</a> (const int &amp;deg)</td></tr>
<tr class="memdesc:abb61f3d57e1a29c07684681de58dfb65"><td class="mdescLeft"> </td><td class="mdescRight">set degree  <a href="#abb61f3d57e1a29c07684681de58dfb65">More...</a><br/></td></tr>
<tr class="separator:abb61f3d57e1a29c07684681de58dfb65"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af6e98ee174bb7e5480fc15731d5df87e"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#af6e98ee174bb7e5480fc15731d5df87e">setLinearGamma</a> (const double &amp;gamma)</td></tr>
<tr class="memdesc:af6e98ee174bb7e5480fc15731d5df87e"><td class="mdescLeft"> </td><td class="mdescRight">set Gamma  <a href="#af6e98ee174bb7e5480fc15731d5df87e">More...</a><br/></td></tr>
<tr class="separator:af6e98ee174bb7e5480fc15731d5df87e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1d531999d61bcc810d2d1dcf2477fdbc"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a1d531999d61bcc810d2d1dcf2477fdbc">setMaxCount</a> (const int &amp;max_count)</td></tr>
<tr class="memdesc:a1d531999d61bcc810d2d1dcf2477fdbc"><td class="mdescLeft"> </td><td class="mdescRight">set MaxCount  <a href="#a1d531999d61bcc810d2d1dcf2477fdbc">More...</a><br/></td></tr>
<tr class="separator:a1d531999d61bcc810d2d1dcf2477fdbc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa40a63059023a98f0af14bea5202986b"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#aa40a63059023a98f0af14bea5202986b">setSaturatedThreshold</a> (const double &amp;lower, const double &amp;upper)</td></tr>
<tr class="memdesc:aa40a63059023a98f0af14bea5202986b"><td class="mdescLeft"> </td><td class="mdescRight">set SaturatedThreshold. The colors in the closed interval [lower, upper] are reserved to participate in the calculation of the loss function and initialization parameters  <a href="#aa40a63059023a98f0af14bea5202986b">More...</a><br/></td></tr>
<tr class="separator:aa40a63059023a98f0af14bea5202986b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab48f2a18b439d35ef8ff222a75bd26f2"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#ab48f2a18b439d35ef8ff222a75bd26f2">setWeightCoeff</a> (const double &amp;weights_coeff)</td></tr>
<tr class="memdesc:ab48f2a18b439d35ef8ff222a75bd26f2"><td class="mdescLeft"> </td><td class="mdescRight">set WeightCoeff  <a href="#ab48f2a18b439d35ef8ff222a75bd26f2">More...</a><br/></td></tr>
<tr class="separator:ab48f2a18b439d35ef8ff222a75bd26f2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a10fdf1a39d938e2bf4fa9a7bdf21736c"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#a10fdf1a39d938e2bf4fa9a7bdf21736c">setWeightsList</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;weights_list)</td></tr>
<tr class="memdesc:a10fdf1a39d938e2bf4fa9a7bdf21736c"><td class="mdescLeft"> </td><td class="mdescRight">set WeightsList  <a href="#a10fdf1a39d938e2bf4fa9a7bdf21736c">More...</a><br/></td></tr>
<tr class="separator:a10fdf1a39d938e2bf4fa9a7bdf21736c"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Core class of ccm model. </p>
<p>Produce a <a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html" title="Core class of ccm model. ">ColorCorrectionModel</a> instance for inference </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aac53feabaac74da5edd9ade5e4163cd0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac53feabaac74da5edd9ade5e4163cd0">◆ </a></span>ColorCorrectionModel() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ccm::ColorCorrectionModel::ColorCorrectionModel </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../de/df4/group__color__correction.html#ga9550427e0c935010355bbbd7d4569836">CONST_COLOR</a> </td>
          <td class="paramname"><em>constcolor</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;ccm_ColorCorrectionModel object&gt;</td><td>=</td><td>cv.ccm_ColorCorrectionModel(</td><td class="paramname">src, constcolor</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;ccm_ColorCorrectionModel object&gt;</td><td>=</td><td>cv.ccm_ColorCorrectionModel(</td><td class="paramname">src, colors, ref_cs</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;ccm_ColorCorrectionModel object&gt;</td><td>=</td><td>cv.ccm_ColorCorrectionModel(</td><td class="paramname">src, colors, ref_cs, colored</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Color Correction Model. </p>
<p>Supported list of color cards:</p><ul>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga9550427e0c935010355bbbd7d4569836abc2930aacd810c065c1a5599ef52255b">COLORCHECKER_Macbeth</a>, the Macbeth ColorChecker</li>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga9550427e0c935010355bbbd7d4569836a35bd21ec824969dc661faee733d6fd20">COLORCHECKER_Vinyl</a>, the DKK ColorChecker</li>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga9550427e0c935010355bbbd7d4569836adb30a2c2bfc10c2d35e8bbfc1c0f3eb5">COLORCHECKER_DigitalSG</a>, the DigitalSG ColorChecker with 140 squares</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>detected colors of ColorChecker patches;<br/>
 the color type is RGB not BGR, and the color values are in [0, 1]; </td></tr>
    <tr><td class="paramname">constcolor</td><td>the Built-in color card </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a802d6b82243c2398633e1b643bb1e115"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a802d6b82243c2398633e1b643bb1e115">◆ </a></span>ColorCorrectionModel() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ccm::ColorCorrectionModel::ColorCorrectionModel </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td>
          <td class="paramname"><em>colors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../de/df4/group__color__correction.html#ga42184f42d54a04bea24902e4d20d8f46">COLOR_SPACE</a> </td>
          <td class="paramname"><em>ref_cs</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;ccm_ColorCorrectionModel object&gt;</td><td>=</td><td>cv.ccm_ColorCorrectionModel(</td><td class="paramname">src, constcolor</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;ccm_ColorCorrectionModel object&gt;</td><td>=</td><td>cv.ccm_ColorCorrectionModel(</td><td class="paramname">src, colors, ref_cs</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;ccm_ColorCorrectionModel object&gt;</td><td>=</td><td>cv.ccm_ColorCorrectionModel(</td><td class="paramname">src, colors, ref_cs, colored</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Color Correction Model. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>detected colors of ColorChecker patches;<br/>
 the color type is RGB not BGR, and the color values are in [0, 1]; </td></tr>
    <tr><td class="paramname">colors</td><td>the reference color values, the color values are in [0, 1].<br/>
</td></tr>
    <tr><td class="paramname">ref_cs</td><td>the corresponding color space If the color type is some RGB, the format is RGB not BGR;<br/>
</td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ac5b005cdbb68aaed515d90b8a382912c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5b005cdbb68aaed515d90b8a382912c">◆ </a></span>ColorCorrectionModel() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ccm::ColorCorrectionModel::ColorCorrectionModel </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td>
          <td class="paramname"><em>colors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../de/df4/group__color__correction.html#ga42184f42d54a04bea24902e4d20d8f46">COLOR_SPACE</a> </td>
          <td class="paramname"><em>ref_cs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td>
          <td class="paramname"><em>colored</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;ccm_ColorCorrectionModel object&gt;</td><td>=</td><td>cv.ccm_ColorCorrectionModel(</td><td class="paramname">src, constcolor</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;ccm_ColorCorrectionModel object&gt;</td><td>=</td><td>cv.ccm_ColorCorrectionModel(</td><td class="paramname">src, colors, ref_cs</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;ccm_ColorCorrectionModel object&gt;</td><td>=</td><td>cv.ccm_ColorCorrectionModel(</td><td class="paramname">src, colors, ref_cs, colored</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Color Correction Model. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>detected colors of ColorChecker patches;<br/>
 the color type is RGB not BGR, and the color values are in [0, 1]; </td></tr>
    <tr><td class="paramname">colors</td><td>the reference color values, the color values are in [0, 1]. </td></tr>
    <tr><td class="paramname">ref_cs</td><td>the corresponding color space If the color type is some RGB, the format is RGB not BGR; </td></tr>
    <tr><td class="paramname">colored</td><td>mask of colored color </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a6325b3a55deb72767a304c626896f396"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6325b3a55deb72767a304c626896f396">◆ </a></span>get_dst_rgbl()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::ccm::ColorCorrectionModel::get_dst_rgbl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.ccm_ColorCorrectionModel.get_dst_rgbl(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a871a8d69a2afc8e3d64ab0a628f055a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a871a8d69a2afc8e3d64ab0a628f055a0">◆ </a></span>get_src_rgbl()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::ccm::ColorCorrectionModel::get_src_rgbl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.ccm_ColorCorrectionModel.get_src_rgbl(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a87833a1238d4c7cc78eccba70a74725e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87833a1238d4c7cc78eccba70a74725e">◆ </a></span>getCCM()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::ccm::ColorCorrectionModel::getCCM </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.ccm_ColorCorrectionModel.getCCM(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a86686c2c1a4aaded3dc8d7af0751b5aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86686c2c1a4aaded3dc8d7af0751b5aa">◆ </a></span>getLoss()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::ccm::ColorCorrectionModel::getLoss </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.ccm_ColorCorrectionModel.getLoss(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a667ac7a20b258f36678fada5d5f8b44e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a667ac7a20b258f36678fada5d5f8b44e">◆ </a></span>getMask()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::ccm::ColorCorrectionModel::getMask </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.ccm_ColorCorrectionModel.getMask(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="ac0ae63ddd6fcda3a53b6e27d0709656c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0ae63ddd6fcda3a53b6e27d0709656c">◆ </a></span>getWeights()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::ccm::ColorCorrectionModel::getWeights </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.ccm_ColorCorrectionModel.getWeights(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="abb0c9acccb93f8220b98998aa512dcee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb0c9acccb93f8220b98998aa512dcee">◆ </a></span>infer()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::ccm::ColorCorrectionModel::infer </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>islinear</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.ccm_ColorCorrectionModel.infer(</td><td class="paramname">img[, islinear]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Infer using fitting ccm. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>the input image. </td></tr>
    <tr><td class="paramname">islinear</td><td>default false. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the output array. </dd></dl>
</div>
</div>
<a id="aa3e97174f1621ab727405684e03009e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3e97174f1621ab727405684e03009e4">◆ </a></span>run()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.run(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>make color correction </p>
</div>
</div>
<a id="a027e6fff707ed911159fc0c225152b0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a027e6fff707ed911159fc0c225152b0a">◆ </a></span>setCCM_TYPE()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setCCM_TYPE </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../de/df4/group__color__correction.html#ga6155b39d9300620492f3132e88200d05">CCM_TYPE</a> </td>
          <td class="paramname"><em>ccm_type</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setCCM_TYPE(</td><td class="paramname">ccm_type</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set ccm_type </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ccm_type</td><td>the shape of color correction matrix(CCM);<br/>
 default: <a class="el" href="../../de/df4/group__color__correction.html#gga6155b39d9300620492f3132e88200d05abccdae5e049202f44d6d6462bb3afd05">CCM_3x3</a> </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a0d2a25c9277756304cd03d96ef7b2284"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d2a25c9277756304cd03d96ef7b2284">◆ </a></span>setColorSpace()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setColorSpace </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../de/df4/group__color__correction.html#ga42184f42d54a04bea24902e4d20d8f46">COLOR_SPACE</a> </td>
          <td class="paramname"><em>cs</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setColorSpace(</td><td class="paramname">cs</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set ColorSpace </p>
<dl class="section note"><dt>Note</dt><dd>It should be some RGB color space; Supported list of color cards:<ul>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46ac1f6adbe303ea85f51f52dcfc895a6b4">COLOR_SPACE_sRGB</a></li>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46aaa296947133a568a399e877d1b732035">COLOR_SPACE_AdobeRGB</a></li>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a238c549796df7093fc54394785c58652">COLOR_SPACE_WideGamutRGB</a></li>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46abc2d3f9eff5f37464b4222c3849a5192">COLOR_SPACE_ProPhotoRGB</a></li>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a916c3e5796475658069526b919d9e14a">COLOR_SPACE_DCI_P3_RGB</a></li>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a7587b2df01ba7b1a732dd140e8181bbd">COLOR_SPACE_AppleRGB</a></li>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46aa6e9a6878e2996cbeba9c6191fe29c14">COLOR_SPACE_REC_709_RGB</a></li>
<li><a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a9b6f7fba8819181ba27bd3f466c8e0d2">COLOR_SPACE_REC_2020_RGB</a> </li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cs</td><td>the absolute color space that detected colors convert to;<br/>
 default: <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46ac1f6adbe303ea85f51f52dcfc895a6b4">COLOR_SPACE_sRGB</a> </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="af836cb0b7050f5529543755a9d8e6df2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af836cb0b7050f5529543755a9d8e6df2">◆ </a></span>setDistance()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setDistance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../de/df4/group__color__correction.html#gae636a2cf3bab4499df34ddbb028d92b1">DISTANCE_TYPE</a> </td>
          <td class="paramname"><em>distance</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setDistance(</td><td class="paramname">distance</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set Distance </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">distance</td><td>the type of color distance;<br/>
 default: <a class="el" href="../../de/df4/group__color__correction.html#ggae636a2cf3bab4499df34ddbb028d92b1a0e49f83a3048040f5da859d501e074d3">DISTANCE_CIE2000</a> </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="aa066c569fffdc7440eb20b5562a75174"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa066c569fffdc7440eb20b5562a75174">◆ </a></span>setEpsilon()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setEpsilon </td>
          <td>(</td>
          <td class="paramtype">const double &amp; </td>
          <td class="paramname"><em>epsilon</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setEpsilon(</td><td class="paramname">epsilon</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set Epsilon </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">epsilon</td><td>used in MinProblemSolver-DownhillSolver;<br/>
 Terminal criteria to the algorithm;<br/>
 default: 1e-4; </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="aacccbe8108d2c3d682ea2711f4be5d91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacccbe8108d2c3d682ea2711f4be5d91">◆ </a></span>setInitialMethod()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setInitialMethod </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../de/df4/group__color__correction.html#ga87d1bd1450e91128cc82adb012bb1db6">INITIAL_METHOD_TYPE</a> </td>
          <td class="paramname"><em>initial_method_type</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setInitialMethod(</td><td class="paramname">initial_method_type</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set InitialMethod </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">initial_method_type</td><td>the method of calculating CCM initial value;<br/>
 default: INITIAL_METHOD_LEAST_SQUARE </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a41097192582815e3e99360d97fe8dae2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41097192582815e3e99360d97fe8dae2">◆ </a></span>setLinear()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setLinear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../de/df4/group__color__correction.html#gafe5da1d946c69c97d42acddd476cc89b">LINEAR_TYPE</a> </td>
          <td class="paramname"><em>linear_type</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setLinear(</td><td class="paramname">linear_type</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set Linear </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">linear_type</td><td>the method of linearization;<br/>
 default: <a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89ba73ae7f26a0de1e309abbb98fe24002a4">LINEARIZATION_GAMMA</a> </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="abb61f3d57e1a29c07684681de58dfb65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb61f3d57e1a29c07684681de58dfb65">◆ </a></span>setLinearDegree()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setLinearDegree </td>
          <td>(</td>
          <td class="paramtype">const int &amp; </td>
          <td class="paramname"><em>deg</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setLinearDegree(</td><td class="paramname">deg</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set degree </p>
<dl class="section note"><dt>Note</dt><dd>only valid when linear is set to<ul>
<li><a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89bae8885aef868e1ca68851d722ba626a53">LINEARIZATION_COLORPOLYFIT</a></li>
<li><a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89ba927be5a9f8edf9f6dd07ea5171c1c0f3">LINEARIZATION_GRAYPOLYFIT</a></li>
<li><a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89ba1344714d283b3f4e1c185f1586c558f0">LINEARIZATION_COLORLOGPOLYFIT</a></li>
<li><a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89bac159d97280a1e7b62a8b914705e9f492">LINEARIZATION_GRAYLOGPOLYFIT</a></li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">deg</td><td>the degree of linearization polynomial;<br/>
 default: 3 </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="af6e98ee174bb7e5480fc15731d5df87e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6e98ee174bb7e5480fc15731d5df87e">◆ </a></span>setLinearGamma()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setLinearGamma </td>
          <td>(</td>
          <td class="paramtype">const double &amp; </td>
          <td class="paramname"><em>gamma</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setLinearGamma(</td><td class="paramname">gamma</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set Gamma </p>
<dl class="section note"><dt>Note</dt><dd>only valid when linear is set to "gamma";<br/>
 </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gamma</td><td>the gamma value of gamma correction;<br/>
 default: 2.2; </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a1d531999d61bcc810d2d1dcf2477fdbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d531999d61bcc810d2d1dcf2477fdbc">◆ </a></span>setMaxCount()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setMaxCount </td>
          <td>(</td>
          <td class="paramtype">const int &amp; </td>
          <td class="paramname"><em>max_count</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setMaxCount(</td><td class="paramname">max_count</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set MaxCount </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">max_count</td><td>used in MinProblemSolver-DownhillSolver;<br/>
 Terminal criteria to the algorithm;<br/>
 default: 5000; </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="aa40a63059023a98f0af14bea5202986b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa40a63059023a98f0af14bea5202986b">◆ </a></span>setSaturatedThreshold()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setSaturatedThreshold </td>
          <td>(</td>
          <td class="paramtype">const double &amp; </td>
          <td class="paramname"><em>lower</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double &amp; </td>
          <td class="paramname"><em>upper</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setSaturatedThreshold(</td><td class="paramname">lower, upper</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set SaturatedThreshold. The colors in the closed interval [lower, upper] are reserved to participate in the calculation of the loss function and initialization parameters </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lower</td><td>the lower threshold to determine saturation;<br/>
 default: 0; </td></tr>
    <tr><td class="paramname">upper</td><td>the upper threshold to determine saturation;<br/>
 default: 0 </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ab48f2a18b439d35ef8ff222a75bd26f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab48f2a18b439d35ef8ff222a75bd26f2">◆ </a></span>setWeightCoeff()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setWeightCoeff </td>
          <td>(</td>
          <td class="paramtype">const double &amp; </td>
          <td class="paramname"><em>weights_coeff</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setWeightCoeff(</td><td class="paramname">weights_coeff</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set WeightCoeff </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">weights_coeff</td><td>the exponent number of L* component of the reference color in CIE Lab color space;<br/>
 default: 0 </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a10fdf1a39d938e2bf4fa9a7bdf21736c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10fdf1a39d938e2bf4fa9a7bdf21736c">◆ </a></span>setWeightsList()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ccm::ColorCorrectionModel::setWeightsList </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>weights_list</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.ccm_ColorCorrectionModel.setWeightsList(</td><td class="paramname">weights_list</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>set WeightsList </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">weights_list</td><td>the list of weight of each color;<br/>
 default: empty array </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/mcc/<a class="el" href="../../db/d83/ccm_8hpp.html">ccm.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:44 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
